]> dgit.raspbian.org Git - llvm-toolchain-19.git/commitdiff
declare_clear_cache
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Sun, 14 Jun 2026 08:12:01 +0000 (10:12 +0200)
committerSylvestre Ledru <sylvestre@debian.org>
Sun, 14 Jun 2026 08:12:01 +0000 (10:12 +0200)
Gbp-Pq: Name declare_clear_cache.diff

llvm/lib/Support/Unix/Memory.inc

index bac208a7d543ca39d5e8368853cfa741bea826b2..b7220c4ea839afeb759f41b846496ee5a970ce39 100644 (file)
@@ -243,7 +243,7 @@ void Memory::InvalidateInstructionCache(const void *Addr, size_t Len) {
   // FIXME: Can we safely always call this for __GNUC__ everywhere?
   const char *Start = static_cast<const char *>(Addr);
   const char *End = Start + Len;
-  __clear_cache(const_cast<char *>(Start), const_cast<char *>(End));
+  __builtin___clear_cache(const_cast<char *>(Start), const_cast<char *>(End));
 #endif
 
 #endif // end apple